package com.wangyadong.hobby.excel;

import org.springframework.beans.BeansException;
import org.springframework.beans.factory.config.BeanPostProcessor;
import org.springframework.core.Ordered;

public class MySecondPostBeanProcess implements BeanPostProcessor   , Ordered {

    @Override
    public Object postProcessAfterInitialization(Object bean, String beanName) throws BeansException {
        System.out.println(" MySecondPostBeanProcess  "+bean.getClass().getSimpleName() + " postProcessAfterInitialization beanName is " + beanName);
        return bean;
    }

    @Override
    public Object postProcessBeforeInitialization(Object bean, String beanName) throws BeansException {
        System.out.println(" MySecondPostBeanProcess  "+bean.getClass().getSimpleName() +" postProcessBeforeInitialization beanName is " + beanName);
        return bean;
    }

    @Override
    public int getOrder() {
        return 0;
    }
}
